{{Strip}}<!-- Fixed navbar -->
  <div id="head-nav" class="navbar navbar-default navbar-fixed-top"><!-- .navbar-fixed-top -->
    <div class="container-fluid">
      <div class="navbar-header">
        <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
          <span class="fa fa-gear"></span>
        </button>
        <a class="navbar-brand" href="{{BackendURL}}/"><span>{{SoftwareTitle}}</span></a>
      </div>
      <div class="navbar-collapse collapse">
        {{Include "topnav"}}
        <ul class="nav navbar-nav navbar-right user-nav">
          <li class="dropdown profile-menu">
            <a href="#" class="dropdown-toggle" data-toggle="dropdown">
              <img class="avatar" alt="Avatar" src="{{if $.Stored.user.Avatar}}{{AddSuffix $.Stored.user.Avatar `_200_200`}}{{else}}{{AssetsURL}}/images/user_30.png{{end}}" onerror="this.onerror=null;this.src='{{AssetsURL}}/images/user_30.png';" />{{$username := call $.Func.Username}}
              <span class="username" title="{{$username}}">{{$username}}</span> 
              <b class="caret"></b>
            </a>
            <ul class="dropdown-menu">
              <li><a href="{{BackendURL}}/user/gauth_bind">{{"账号安全"|$.T}}</a></li>
              <li><a href="{{BackendURL}}/user/edit">{{"修改资料"|$.T}}</a></li>
              <li><a href="{{BackendURL}}/user/theme/switch">{{"暗/亮模式"|$.T}}</a></li>
              {{- if eq $.Stored.user.Id 1 -}}
              <li class="divider"></li>
              <li><a href="{{BackendURL}}/icon" target="_blank">{{"图标大全"|$.T}}</a></li>
              <li><a href="{{BackendURL}}/routeNotin" target="_blank">{{"未登记权限的路由"|$.T}}</a></li>
              <li><a href="{{BackendURL}}/headers" target="_blank">{{"Headers"|$.T}}</a></li>
              {{- end -}}
              <li class="divider"></li>
              <li><a href="{{BackendURL}}/logout">{{"退出登录"|$.T}}</a></li>
            </ul>
          </li>
        </ul>
        {{/*Include "topnotice"*/}}
        {{Include "topbutton"}}
      </div><!--/.nav-collapse -->
    </div>
  </div>
{{/Strip}}